import { request } from 'umi';
import type { SubmitParams } from './type';
export async function saveArticle(params: SubmitParams) {
  return request('/api/client/saveArticle', {
    method: 'POST',
    data: params,
  });
}
export async function ArticleType() {
  return request('/api/client/ArticleType', {
    method: 'GET',
  });
}
export async function ArticleColumn(user_id: number){
    return request('/api/client/ArticleColumn',{
        method:'GET',
        params:{user_id:user_id}
    })
}
export async function UploadImage(params: any){
    return request('/api/client/Upload',{
        method:'POST',
        data:params,
    })
}
export async function createArticleColumn(params: any){
  return request('/api/client/createArticleColumn',{
      method:'POST',
      data:params,
  })
}


